<div class="hd-20160908">
    <div class="hd-banner-bg banner-bg1">
      <div class="hd-banenr">
        <div class="banner-text">
          Entrar <a href="#">Geekvida.es >></a>
        </div>
      </div>
    </div>
    <div class="hd-banner-bg banner-bg2">
    </div>
    <div class="hd-main-content">
      <div class="w990">
         <div class="hd-display-block" id="display1"></div>
          <div class="hd-display-block" id="display2"></div>

          <div class="hd-display-block" id="display3">
              <a href="#"><img class="hd-tada" src="./images/201609086.png"></a>
          </div>

          <div class="hd-display-block" id="display4"> </div>
      
          <div class="hd-display-block" id="display5"></div>

          <div class="panel-layout">
            <ul>
              <li><a href="#display1">LA MARCA XIAOMI</a></li>
              <li><a href="#display2">MÓVILES&TABLETAS</a></li>
              <li><a href="#display3">MÓVILES Reformados</a></li>
              <li><a href="#display4">Accesorios y repuestos</a></li>
              <li><a href="#display5">GADGETS</a></li>
              <li style="margin-top:25px;border:none;"><a id="hd-scrollTop" href="#Top"><img src="./images/2016082313.png"></a></li>
            </ul>
          </div>

       </div>
     </div>
  </div>
  <style>
     #display1 .titile-special-product {margin-top: -210px;}
    .titile-special-product {position: relative;margin-bottom:50px;}
    .titile-special-product .title {width:520px;height:271px;background: url(./images/201609084.png) no-repeat center;}
    .title .title-big {font-size: 25px;color: rgb(0, 0, 0);padding-top: 40px;height: 70px;width: 270px;margin: 0px 0px 45px 90px;text-align: left;line-height: 62px;}
    .title .title-info { margin-left: 95px; text-align: left; width: 410px; font-size: 15px; color:#333; height: 65px;font-weight: bold;line-height: 65px;}
    .titile-special-product .special-product {position: absolute;top: -80px;right: 0px;}
    .titile-special-product .special-product-info {position: absolute;right: 0px;background: rgba(125, 125, 125, 0.5);top:120px;padding: 15px;border-radius: 5px;width:160px;}
    .special-product-info .subtitle a{font-size:15px;color:#fff;}
    .hd-20160908 {background: url(./images/201609081.jpg) no-repeat fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; -ms-background-size: cover;}
    .hd-20160908 .banner-bg1{height:650px; width: 100%;background: url(./images/201609082.jpg) no-repeat center;}
    .hd-20160908 .banner-bg2{height:370px; width: 100%;background: url(./images/201609083.png) no-repeat center;}
    .hd-20160908 .hd-banenr {height: 650px;position: relative;width: 1103px;margin: 0px auto;}
    .hd-banenr .banner-text { position: absolute; right: 0px; font-size: 14px; width: 180px; text-align: center; border: 1px solid #dedede; background: #fff; padding: 5px;}
    .hd-banenr .banner-text a {color:#02b717;}
    .hd-display-block .display-title{text-align: left;margin-bottom: 0px;}
    .hd-product-list {background: rgba(55, 31, 74, 0.6);padding:5px;}
    .hd-product-list ul li, .special-product-info{-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
    .hd-product-list ul li:hover,.special-product-info:hover  {transform: translateY(-6px);-webkit-transform: translateY(-6px); -o-transform: translateY(-6px); -ms-transform: translateY(-6px); -moz-transform: translateY(-6px);}       
    .hd-display-block {text-align: center;margin-top:50px;padding-bottom:35px;}
   .hd-product-list .small-list .discount-number2{ position: absolute; height: 60px; width: 60px; font-size: 20px; color: #fff100; font-weight: bold; top: 0px; right: 0px; line-height: 60px; background: #00afff; border-radius: 50%;}
    .hd-product-list .review-wrapper p{height: 32px;width: 186px;margin: 0px;text-align: center;background: url(./images/201609083.jpg) no-repeat center;}
    .hd-product-list .review-wrapper p a {color: #fff;font-size: 12px;padding: 3px 5px;display: block;line-height: 14px;}
     .hd-product-list ul li:hover .review-wrapper p a {color:#a60304;}
    .hd-product-list ul li.small-list {width: 186px;background: #fff;float: left;margin:5px;position: relative;}
    .hd-product-list ul li.small-list img {width:100%;}
    .price-area {margin: 10px 0px 5px;}
     .old-price {font-size: 16px;text-decoration: line-through;line-height: 15px;color:#606060;}
     .special-product-info .old-price {color:#fff;}
    .current-price {font-size: 27px;font-weight: bold;color: #f51214;line-height: 22px;font-family: arial;}
    .hd-product-list .hd-btn-buy {font-size: 14px;color: #fff;background: #ff0267;padding: 2px 5px 4px;margin: 10px;display: inline-block;width:65%;}
    .hd-product-list .review-wrapper .hd-btn-buy {font-size: 12px;color: #333;float: right;margin-top: 3px;text-decoration: underline;}
    .panel-layout{ background: url(./images/2016090812.png)no-repeat; width: 180px; height: 570px; position: fixed; top: 0; margin-left: 1000px; display: none;padding-top: 15px;}
    .panel-layout ul li{list-style: none;width: 160px;margin: 0px auto 6px;border-bottom: 1px solid #999;}
    .panel-layout ul li a{ display: block; height: 34px; width: 100%; color: #fff; text-align: center; font-size: 14px; line-height: 34px; overflow: hidden; text-transform: lowercase;}
    .panel-layout ul li.current a {color:#ff0267;}
    #hd-scrollTop img {margin-top: 8px;}
  
  </style>

  <script type="text/javascript">
    (function($){
      var str1 = '', str2 = '';
        for (var i = 0; i < 20; i++) {
          str1 += `<li class="small-list">
                    <a href="#"><img src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado"></a>
                     <div class="review-wrapper">
                      <p><a href="#">Blackview Ultra A6 Plus 2GB 16GB Dorado</a></p>
                    </div>
                    <div class="price-area">
                      <a href="#">
                        <span class="old-price">309.99€</span>
                        <span class="current-price">145.99€</span>
                      </a>
                    </div>
                  </li>`;
           
        }

        str2 = `<div class="display">
              <div class="titile-special-product">
                <div class="title">
                  <h3 class="title-big">LA MARCA XIAOMI</h3>
                  <p class="title-info" style="font-size: 18px;">los Top ventas de marca XIAOMI</p>
                </div>
                <div class="special-product">
                  <img src="./images/201609087.png" alt="LA MARCA XIAOMI">
                  <div class="special-product-info">
                    <h3 class="subtitle"><a href="#">XIAOMI Redmi 3 Pro</a></h3>
                    <div class="price-area">
                      <a href="#">
                        <span class="old-price">309.99€</span>
                        <span class="current-price">179.99€</span>
                      </a>
                    </div>
                  </div>
                </div>
              </div>
            <div class="hd-product-list">
                <ul class="lis1 clearfloat">${str1}</ul>
            </div>
          </div>`;
        $(".hd-display-block").prepend(str2);


        var sideNav = $(".panel-layout");
        $(window).on("scroll",function(){
          var sideNavShow = $("#display1").offset().top;
          var modTop = [];
          if($(this).scrollTop()>=sideNavShow){
              sideNav.fadeIn(200);
            }
            else{
              sideNav.fadeOut(200);
            }
          /*滚动到哪个地方，相应的对方变换样式*/
          for (var i = 0; i < $(".panel-layout ul li a").length - 1; i++) {
              modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top-10;

              if ($(window).scrollTop() >= modTop[i]) {
                $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
              };
            };
        });
        
        sideNav.find("li").find("a").on("click",function(e){
          e.preventDefault();
          var aHash = this.hash;
          $("html,body").animate({
            scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top
          });
        });

    })(jQuery);
  </script>